home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_perl.idb / usr / freeware / lib / perl5 / 5.00502 / make.libs.z / make.libs
Encoding:
Text File  |  1998-10-28  |  845 b   |  41 lines

  1. #!/sbin/sh
  2. #
  3. # make the perl4-style *.ph files
  4. # SGI Freeware Perl version
  5.  
  6. # (note: this script runs chroot-ed)
  7.  
  8. # ensure that the perl link is made first
  9. if ! /usr/freeware/lib/perl5/5.00502/linkop ; then
  10.     echo "no perl binary installed?"
  11.     exit 1
  12. fi
  13.  
  14. # h2ph wants the dir to already exist:
  15. pmdir=`/usr/freeware/bin/perl -MConfig -e 'print $Config{installsitelib};'`
  16. if [ ! -d $pmdir ] ; then
  17.     /sbin/mkdir -p $pmdir
  18. fi
  19.  
  20. #  Alright, compute them perl5 libs
  21.  
  22. cd /usr/include
  23.  
  24. # sys and netinet are always going to be there, net and arpa maybe not.
  25.  
  26. /usr/freeware/bin/h2ph -d $pmdir *.h sys/*.h netinet/*.h > /dev/null
  27.  
  28. if [ -d net ] ; then
  29.     /usr/freeware/bin/h2ph -d $pmdir net/*.h > /dev/null
  30. fi
  31.  
  32. if [ -d arpa ] ; then
  33.     /usr/freeware/bin/h2ph -d $pmdir arpa/*.h > /dev/null
  34. fi
  35.  
  36. # no Poof!
  37.  
  38. # rm /usr/freeware/lib/perl5/5.00502/make.libs
  39.  
  40. exit 0
  41.